home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 13 / FreelogHS13.iso / P To P / Emule24b_Morph_Mod_V4b-binary / Webserver / debug.js next >
Text File  |  2002-12-18  |  449b  |  17 lines

  1. function createDebug(x,y)
  2. {
  3.   var str="";
  4.   str+='<div id="divDebug" style="position:absolute; z-index:1000; left: '+x+';top: '+y+'; visibility:show;">'
  5.       +'<textarea id="taDebug" cols="50" rows="30">Debug:\n</textarea>'
  6.       +'</div>';
  7.   document.write(str);
  8.   oDebug=new lib_obj('divDebug');
  9.   oDebug.debug=printDebug;
  10.   oDebug.showIt();
  11.   return oDebug;
  12. }
  13.  
  14. function printDebug(text)
  15. {
  16.   document.all.taDebug.value+=text+"\n";
  17. }